{"version":3,"sources":["spotlight.js"],"names":["BX","SpotLight","options","this","container","popup","id","util","getRandomString","toLowerCase","targetElement","targetElementRect","targetVertex","content","top","left","lightMode","autoSave","zIndex","observerTimeoutId","observerTimeout","setOptions","Error","handlePageResize","bind","prototype","type","isPlainObject","setTargetElement","renderTo","setTargetVertex","setZindex","setLightMode","setContent","setOffsetLeft","setOffsetTop","setAutoSave","setObserverTimeout","setId","bindEvents","events","eventName","cb","isFunction","getClass","addCustomEvent","getFullEventName","unbindEvents","removeCustomEvent","getOptions","getId","isNotEmptyString","getZindex","getGlobalIndex","getTargetElement","element","index","propertyValue","style","stringToInt","parentNode","tagName","isNumber","getContent","isDomNode","document","querySelector","getOffsetLeft","offset","getOffsetTop","getLightMode","mode","isBoolean","getAutoSave","getObserverTimeout","timeout","getTargetVertex","vertex","getPopup","PopupWindow","className","angle","position","closeByEsc","overlay","onPopupShow","fireEvent","onPopupClose","close","buttons","PopupWindowCustomButton","text","message","click","onCustomEvent","getTargetContainer","create","attrs","mouseenter","handleTargetMouseEnter","mouseleave","handleTargetMouseLeave","window","adjustPosition","pos","isVisible","Boolean","offsetWidth","offsetHeight","getClientRects","length","hidden","width","right","height","bottom","show","save","handleTargetElementResize","currentRect","body","appendChild","setInterval","destroy","clearInterval","unbind","remove","optionName","userOptions","Math","floor","Date","now","send","shortName","Manager","spotlights","get","spotlight"],"mappings":"CAAC,WAEA,aAEAA,GAAGC,UAAY,SAAUC,GAExBC,KAAKC,UAAY,KACjBD,KAAKE,MAAQ,KACbF,KAAKG,GAAK,aAAeN,GAAGO,KAAKC,kBAAkBC,cACnDN,KAAKD,WAELC,KAAKO,cAAgB,KACrBP,KAAKQ,kBAAoB,KACzBR,KAAKS,aAAe,WACpBT,KAAKU,QAAU,KACfV,KAAKW,IAAM,EACXX,KAAKY,KAAO,EACZZ,KAAKa,UAAY,MACjBb,KAAKc,SAAW,MAChBd,KAAKe,OAAS,KAEdf,KAAKgB,kBAAoB,KACzBhB,KAAKiB,gBA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